package com.sa07.config;

import java.io.InputStream;

import com.sa07.db.DbConfig;
import com.sa07.db.H2SessionFactory;


/**
 * H2配置初始化
 * 
 * @author Long.shangbo
 *
 * 2014-2-21 上午11:14:50
 */
public class H2ConfigInit extends DataBaseConfigInit {
	
	private static final String SQLITE_CONFIG_FILE = "db_config.properties";

	@Override
	protected void processConfig(DbConfig config) {
		H2SessionFactory.getFactory().buildFactory(config);
	}

	@Override
	protected InputStream getConfigInputStream() {
		return H2ConfigInit.class.getResourceAsStream(SQLITE_CONFIG_FILE);
	}

	

}
